package com.wlps.service.function;

import com.wlps.entity.Order;
import com.wlps.entity.OrderRecord;
import com.wlps.service.IOrderRecordService;
import com.wlps.service.IOrderService;
import com.wlps.vo.RecordOrderVo;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;

public class OrderRecordOperator {
    @Resource
    private IOrderRecordService orderRecordService;

    @Resource
    private IOrderService orderService;
//    @Transactional
//    public List<RecordOrderVo> queryRecordOrders(){
//        List<OrderRecord> list = orderRecordService.list();
//        List<Long> collect = list.stream().map(OrderRecord::getId).collect(Collectors.toList());
//        Collection<Order> orders = orderService.listByIds(collect);
//
//    }
}
